#!/usr/bin/perl

#This function decided whether the test case has passed or failed based on the loss percentage for 100% loss.
sub conclusion_for_100_loss{
	my($percentage_value) = @_;
	$flag_success_or_fail = 0;
	if ($percentage_value == 100){
		$flag_success_or_fail = 1;                    #if loss is 100% then flagsf = 1 and test case passed.
	}
	else{
		$flag_success_or_fail = 2;                    #if loss is less than 100 % then flagsf = 2 and test case failed.
	}
	return($flag_success_or_fail);
}
1;
